package com.xjc.infra.entity;

import java.io.Serializable;


public class SessionContext implements Serializable {
	private static final long serialVersionUID = 4881070754707148790L;
    
	//begin modify by dengxq 2017-02-23 json转换时不能为空的不输出
	/**
	 * 构造函数
	 */
	public SessionContext() {
	}
	
	/**
	 * 外部流水号
	 */
	private String userReferenceNumber=" ";
	
    /**
     * 实体编号
     */
	private Integer entityCode;
	
	/**
	 * 渠道编号
	 */
	private String channel=" ";
	
	/**
	 * 服务编号
	 */
	private String serviceCode=" ";
	
	/**
	 * 系统交易时间
	 */
	private String postingDateText=" ";
		
	/**
	 * 访问源IP
	 */
	private String remoteIp=" ";
	
	/**
	 * 客户编号 未登录为“guest”
	 */
	private String customerId=" ";
	
	/**
	 * 客户类型 未登陆为空
	 */
	private String customerType=" ";
	
	/**
	 * 系统访问者认证状态 未登陆为空
	 */
	private String customerValidationStatus=" ";
	
	/**
	 * 系统客户权限位
	 */
	private String customerLimit=" ";
	
	/**
	 * 系统访问源 电脑、IOS、Android
	 */
	private String accessSource=" ";
	
	/**
	 * 访问源浏览器类型
	 */
	private String accessSourceType=" ";
	
	/**
	 * 认证通过原因
	 */
	private String authorizationReason=" ";
	
	/**
	 * 内部流水号 
	 */
	private String externalReferenceNo=" ";

	/**
	 * 原始流水号
	 */
	private String originalReferenceNo=" ";
	
	
	private String transactionBranch=" ";
	
	

	public String getTransactionBranch() {
		return  transactionBranch!=null? transactionBranch.trim():"";
	}

	public void setTransactionBranch(String transactionBranch) {
		this.transactionBranch = transactionBranch;
	}

	/**
	 * 实体编号（银行代码）
	 * 
	 * @return
	 */
	public Integer getEntityCode() {
		return entityCode;
	}

	/**
	 * 实体编号（银行代码）
	 * 
	 * @return
	 */
	public void setEntityCode(Integer entityCode) {
		this.entityCode = entityCode;
	}

	/**
	 * 渠道编号
	 * 
	 * @return
	 */
	public String getChannel() {
		return  channel!=null?channel.trim():"";
	}

	/**
	 * 渠道编号
	 * 
	 * @param channel
	 */
	public void setChannel(String channel) {
		this.channel = channel;
	}

	/**
	 * 服务编号
	 * 
	 * @return
	 */
	public String getServiceCode() {
		return  serviceCode!=null?serviceCode.trim():"";
	}

	/**
	 * 服务编号
	 * 
	 * @param serviceCode
	 */
	public void setServiceCode(String serviceCode) {
		this.serviceCode = serviceCode;
	}

	/**
	 * 系统处理日
	 * 
	 * @return
	 */
	public String getPostingDateText() {
		return  postingDateText!=null?postingDateText.trim():"";
	}

	/**
	 * 系统处理日
	 * 
	 * @param postingDateText
	 */
	public void setPostingDateText(String postingDateText) {
		this.postingDateText = postingDateText;
	}


	public String getRemoteIp() {
		return  remoteIp!=null?  remoteIp.trim():"";
	}

	public void setRemoteIp(String remoteIp) {
		this.remoteIp = remoteIp;
	}

	public String getCustomerId() {
		return customerId!=null? customerId.trim():"";
	}

	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}

	public String getCustomerType() {
		return  customerType!=null? customerType.trim():"";
	}

	public void setCustomerType(String customerType) {
		this.customerType = customerType;
	}

	public String getCustomerValidationStatus() {
		return  customerValidationStatus!=null? customerValidationStatus.trim():"";
	}

	public void setCustomerValidationStatus(String customerValidationStatus) {
		this.customerValidationStatus = customerValidationStatus;
	}

	public String getCustomerLimit() {
		return customerLimit!=null?customerLimit.trim():"";
	}

	public void setCustomerLimit(String customerLimit) {
		this.customerLimit = customerLimit;
	}

	public String getAccessSource() {
		return accessSource!=null? accessSource.trim():"";
	}

	public void setAccessSource(String accessSource) {
		this.accessSource = accessSource;
	}

	public String getAccessSourceType() {
		return  accessSourceType!=null? accessSourceType.trim():"";
	}

	public void setAccessSourceType(String accessSourceType) {
		this.accessSourceType = accessSourceType;
	}
	
	/**
	 * 授权原因描述
	 * 
	 * @return
	 */
	public String getAuthorizationReason() {
		return authorizationReason!=null? authorizationReason.trim():"";
	}

	/**
	 * 授权原因描述
	 * 
	 * @param authorizationReason
	 */
	public void setAuthorizationReason(String authorizationReason) {
		this.authorizationReason = authorizationReason;
	}

	/**
	 * 外部流水号 -- 该流水号用于记录发起方的流水号
	 * 
	 * @return
	 */
	public String getExternalReferenceNo() {
		return externalReferenceNo!=null? externalReferenceNo.trim():"";
	}

	/**
	 * 外部流水号 -- 该流水号用于记录发起方的流水号
	 * 
	 * @param externalReferenceNo
	 */
	public void setExternalReferenceNo(String externalReferenceNo) {
		this.externalReferenceNo = externalReferenceNo;
	}

	/**
	 * 用户流水号 -- 该流水号用于记录中间转换系统生成的流水号，可以为空
	 * 
	 * @return
	 */
	public String getUserReferenceNumber() {
		return userReferenceNumber!=null?userReferenceNumber.trim():"";
	}

	/**
	 * 用户流水号 -- 该流水号用于记录中间转换系统生成的流水号，可以为空
	 * 
	 * @param userReferenceNumber
	 */
	public void setUserReferenceNumber(String userReferenceNumber) {
		this.userReferenceNumber = userReferenceNumber;
	}

	/**
	 * 原始流水号 -- 该流水号用于冲账，调用冲账接口时该流水号为必输
	 * 
	 * @return
	 */
	public String getOriginalReferenceNo() {
		return  originalReferenceNo!=null? originalReferenceNo.trim():"";
	}

	/**
	 * 原始流水号 -- 该流水号用于冲账，调用冲账接口时该流水号为必输
	 * 
	 * @param originalReferenceNo
	 */
	public void setOriginalReferenceNo(String originalReferenceNo) {
		this.originalReferenceNo = originalReferenceNo;
	}
	
}
